package com.deepocean.service;

import com.deepocean.entity.LinearScreenCondition;
import com.deepocean.entity.LinearScreenEntity;
import com.deepocean.entity.LinearScreenInAndOut1Hour;

import java.util.List;

/**
 * 直线筛
 */
public interface ILinearScreenService {
    /**
     * 添加数据
     * @param linearScreenEntity
     * @return
     */
    boolean add(LinearScreenEntity linearScreenEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    LinearScreenInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 分页查询
     * @param linearScreenCondition
     * @return
     */
    List<LinearScreenEntity> getLinearScreenByCondition(LinearScreenCondition linearScreenCondition);
}
